package com.hbpu.encap.homework02;

public class Homework07 {
    public static void main(String[] args) {
        Color[] values = Color.values();

        for (Color value : values) {
            switch (value) {
                case RED :
                    System.out.println();
            }
        }


    }
}

interface ColorInter {
    void show();
}

enum Color implements ColorInter {
    RED(255, 0, 0),
    BLUE(0, 0, 255),
    BLACK(0, 0, 0),
    YELLOW(255, 255, 0),
    GREEN(0, 255, 0);

    private int redValue;
    private int greenValue;
    private int blueValue;

    Color(int redValue, int greenValue, int blueValue) {
        this.redValue = redValue;
        this.greenValue = greenValue;
        this.blueValue = blueValue;
    }


    @Override
    public void show() {
        System.out.println(this.name() +
                " {" + redValue +
                ", " + greenValue +
                ", " + blueValue +
                '}');
    }


}